<template>
  <div class="goodlist">
    <good-list-item v-for="(item,index) in gooddata" :key="item+index" :goodslistitem='item'/>
  </div>
</template>

<script>
import GoodListItem from './goodslistitem'
export default {
  props:{
   gooddata:Array,
   default(){
     return[]
   }
  },
  name:'goodslist',
  components: {
    GoodListItem
  }
}
</script>

<style scoped>
.goodlist{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
</style>